From db76f088191e7e6d4c968254b81548b6a32c337a Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 21 Nov 2006 03:22:18 +0000 Subject: [PATCH] Code style tweaks per brion's suggestions on Wikitech-l --- includes/EditPage.php | 4 ++-- includes/Linker.php | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 27e5408f52..391badcbb3 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1040,7 +1040,7 @@ class EditPage { $wgOut->setOnloadHandler( 'document.editform.wpTextbox1.focus()' ); } $templates = ($this->preview || $this->section) ? $this->mPreviewTemplates : $this->mArticle->getUsedTemplates(); - $templates = $sk->formatTemplates( $templates, $this->preview, $this->section != ''); + $formattedtemplates = $sk->formatTemplates( $templates, $this->preview, $this->section != ''); global $wgUseMetadataEdit ; if ( $wgUseMetadataEdit ) { @@ -1183,7 +1183,7 @@ END $wgOut->addHTML( "
-{$templates} +{$formattedtemplates}
" ); diff --git a/includes/Linker.php b/includes/Linker.php index 636aaf2970..2a50547d61 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1152,9 +1152,14 @@ class Linker { $batch->execute(); # Construct the HTML - $outText = '
' . - wfMsgExt( 'templatesused' . ( $preview ? 'preview' : ( $section ? 'section' : '' ) ), array( 'parse' ) ) . - '